package me.ingxin.android.sample.lego

import android.app.Application
import android.content.res.AssetManager
import android.content.res.Resources
import me.ingxin.android.router.annotaions.Component
import me.ingxin.android.router.base.ApplicationComponent
import me.ingxin.android.sample.lego.utils.logD

/**
 * Created by ingxin on 2022/4/29
 */
@Component("app_component", dependencies = ["lib_component"])
class AppComponent : ApplicationComponent() {
    override fun onCreate(application: Application) {
        "AppComponent onCreate ".logD()
    }

    override fun getAssets(applicationAssetManager: AssetManager?): AssetManager? {
        "applicationAssetManager ".logD()
        return super.getAssets(applicationAssetManager)
    }

    override fun getResources(applicationResources: Resources?): Resources? {
        "applicationResources ".logD()
        return super.getResources(applicationResources)
    }


}